<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return dialogSearch(this);" action="${pageContext.request.contextPath}/customer/shopFollow/check?id=${requestScope.spid}" method="post">
		<!-- 分页表单参数 -->
		<%@include file="/WEB-INF/page/inc/pageForm.jsp"%>
 		<!-- 需要排序的字段 -->
		<input type="hidden" name="orderField" value="${requestScope.dwzPageBean.countResultMap.orderField}" />
		<!-- 正序倒序 -->
		<input type="hidden" name="orderDirection" value="${requestScope.dwzPageBean.countResultMap.orderDirection}" />
<%-- 		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>跟进人：<input type="text" name="maid" value="${requestScope.dwzPageBean.countResultMap.maid}" placeholder="输入跟进人" /></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查询</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div> --%>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		<shiro:hasPermission name="/customer/shopFollow/toInsert">
				<li><a class="add" href="${pageContext.request.contextPath}/customer/shopFollow/toInsert?spid=${requestScope.spid}" close="close" rel="insert" target="dialog" width="820" height="460" mask="true"><span>添加</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="/customer/shopFollow/delete">
				<li><a class="delete" targetType="dialog" href="${pageContext.request.contextPath}/customer/shopFollow/delete" callback="close" rel="id"  target="selectedTodo" title="确定要删除吗？" warn="请最小选择一条记录" mask="true"><span>批量删除</span></a></li>
			</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" targetType="dialog" asc="asc" desc="desc" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="id2" class="checkboxCtrl"></th>
				
				<th orderField="fwtm" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'fwtm'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>跟进时间</th>
				<th orderField="fwop" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'fwop'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>跟进操作</th>
				<th orderField="remk" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'remk'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>备注</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>

			<c:if test="${requestScope.dwzPageBean != null &&  requestScope.dwzPageBean.recordList != null }">
				<c:forEach var="record" items="${requestScope.dwzPageBean.recordList}" varStatus="status">
					<tr  ondblclick="openDetails(this)" target="dialog" href="${pageContext.request.contextPath}/customer/shopFollow/toUpdate?id=${record.id}" title="编辑">
						<td><c:if test="${record.del!=3 }">
								<input name="id" value="${record.id}" type="checkbox">
							</c:if></td>
						<td><fmt:formatDate value="${record.fwtm}" pattern="yyyy-MM-dd" /></td>
						<td>${record.fwop}</td>
						<td>${record.remk}</td>
						<td>
						<shiro:hasPermission name="/customer/shopFollow/toUpdate">
							<a title="编辑" target="dialog" width="820" height="460" href="${pageContext.request.contextPath}/customer/shopFollow/toUpdate?id=${record.id}" close="close" class="editBtn" mask="true"><span>编辑</span></a>
						</shiro:hasPermission>
						<shiro:hasPermission name="/customer/shopFollow/delete">
							<c:if test="${record.del!=3}">
								<a title="确定要删除吗？" mask="true" target="ajaxTodo" href="${pageContext.request.contextPath}/customer/shopFollow/delete?id=${record.id}" callback="close" class="deleteBtn"><span>删除</span></a>
							</c:if>
							</shiro:hasPermission>
							</td>
					</tr>
				</c:forEach>
			</c:if>
		</tbody>
	</table>
	<!-- 分页条 -->
	<script type="text/javascript">
		function close(){
			console.log("66666");
			$.pdialog.reload("${pageContext.request.contextPath}/shop/shopFollow/check?id=${spid}",{dialogId:"genjin",callback:null});
			return true;
		}
/* 		function delclose(){
			console.log("66666");
			$.pdialog.reload("${pageContext.request.contextPath}/customer/shopFollow/check?id=${spid}",{dialogId:"genjin",callback:null});
			return true;
		} */
	</script>
	<%@include file="/WEB-INF/page/inc/dialogPageBar.jsp"%>
</div>